package org.okeoe.gen.dao;
/**
 * Created by luodajie on 2019/1/6.
 */

import org.apache.ibatis.annotations.Param;
import org.okeoe.gen.entity.CgFormHead;
import org.okeoe.gen.entity.CgFormHeadCommand;
import org.okeoe.gen.entity.ListPage;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author :dj
 * @version : 1.0.0
 * @description
 * @Date 2019-01-06 10:25
 * @note
 */
public interface CgFormHeadMapper extends Mapper<CgFormHead> {

    List<CgFormHead> findByPage(ListPage<CgFormHeadCommand> listPage) throws Exception;

    /**
     * 根据表名称查询
     * @param command
     * @return
     * @throws Exception
     */
    List<CgFormHead> findByTableNameOrId(@Param("entity") CgFormHeadCommand command) throws Exception;
}
